import { Controller } from '@nestjs/common';
import { Crud } from 'nestjs-mongoose-crud'
import { Course } from '@libs/db/models/course.model'
import { InjectModel } from 'nestjs-typegoose';
import { ReturnType } from '@typegoose/typegoose'

@Crud({
    model: Course
})

@Controller('courses')
export class CoursesController {
    constructor(
        @InjectModel(Course) private readonly model: ReturnType<typeof Course>
    ){}
}


